package com.stone.framework.core.model;

import java.util.List;

public class UserInfo {

    public static final UserInfo EMPTY = new UserInfo();

    private String name;

    private String cname;

    private String dept;

    private List<String> roles;

    private List<String> perms;

    private Terminal term;

    public static enum Terminal {
        PC, APP, WECHAT
    }

    public String getName() {
        return name;
    }

    public UserInfo setName(String name) {
        this.name = name;
        return this;
    }

    public String getCname() {
        return cname;
    }

    public UserInfo setCname(String cname) {
        this.cname = cname;
        return this;
    }

    public String getDept() {
        return dept;
    }

    public UserInfo setDept(String dept) {
        this.dept = dept;
        return this;
    }

    public List<String> getRoles() {
        return roles;
    }

    public UserInfo setRoles(List<String> roles) {
        this.roles = roles;
        return this;
    }

    public List<String> getPerms() {
        return perms;
    }

    public UserInfo setPerms(List<String> perms) {
        this.perms = perms;
        return this;
    }

    public String getTerm() {
        return term.toString();
    }

    public UserInfo setTerm(Terminal term) {
        this.term = term;
        return this;
    }

}
